//
//  Person.m
//  Test002_LearnCategories
//
//  Created by Ronald Ram on 9/22/12.
//  Copyright (c) 2012 Ronald Ram. All rights reserved.
//

#import "Person.h"

@implementation Person

- (id)init
{
    return [self initWithFName:@"Peter" AndLName:@"Pan"];
}

-(id)initWithFName:(NSString *)fn AndLName:(NSString *)ln
{
    return [self initWithFName:fn AndLName:ln AndAge:10];
}

- (id)initWithFName:(NSString *)fn AndLName:(NSString *)ln AndAge:(int)a
{
    if ( self = [super init] ) {
        m_fn = fn;
        m_ln = ln;
        m_age = a;
    }
    return self;
}


- (void) dealloc
{
    [m_fn release];
    [m_ln release];
    m_age = 0;
    [super dealloc];
}


@synthesize fname = m_fn, lname = m_ln;
@synthesize age = m_age;


@end
